Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(monkeys): Add new configuration attributes for the next milestone [WPB-3353] #1911

Merged
merged 3 commits into from
Jul 24, 2023

Conversation

augustocdias
Copy link
Collaborator


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

In order to enable extensibility and more use cases we're adding new configuration options for the application.

Causes (Optional)

Right now the application is with most of its parameters hardcoded, not allowing many test scenarios.

Notes (Optional)

This is the first iteration on this. The logic for handling the configuration will come in separate PRs to not have huge code reviews.


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 24, 2023

Unit Test Results

   407 files  ±0     407 suites  ±0   2m 12s ⏱️ +19s
2 200 tests ±0  2 102 ✔️ ±0  98 💤 ±0  0 ±0 

Results for commit 7c57950. ± Comparison against base commit 143a07a.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

codecov-commenter commented Jul 24, 2023

Codecov Report

Merging #1911 (7c57950) into develop (143a07a) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop    #1911      +/-   ##
=============================================
- Coverage      56.07%   56.07%   -0.01%     
  Complexity        35       35              
=============================================
  Files            987      987              
  Lines          36873    36873              
  Branches        3315     3315              
=============================================
- Hits           20677    20675       -2     
- Misses         14814    14816       +2     
  Partials        1382     1382              

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 143a07a...7c57950. Read the comment docs.

@augustocdias augustocdias marked this pull request as ready for review July 24, 2023 13:31
Comment on lines +38 to +47
@Serializable
sealed class UserCount {
@Serializable
@SerialName("PERCENTAGE")
data class Percentage(@SerialName("value") val value: UInt) : UserCount()

@Serializable
@SerialName("FIXED_COUNT")
data class FixedCount(@SerialName("value") val value: UInt) : UserCount()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as a heads up, this will require an implicit type field in order for Kotlinx-serialization to select which one is being deserialized.

"userCount": {
    "type": "PERCENTAGE",
    "value": 48
}
"userCount": {
    "type": "FIXED_COUNT",
    "value": 1000
}

I like it :)

@augustocdias augustocdias enabled auto-merge (squash) July 24, 2023 13:45
@augustocdias augustocdias merged commit 7e7615f into develop Jul 24, 2023
9 checks passed
@augustocdias augustocdias deleted the feat/monkeys/new-config branch July 24, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants